<?php

$configPath = dirname(__FILE__);
require_once($configPath.'/enum.php');
require_once($configPath.'/constant.php');

return array
(
	'basePath' => $configPath.'/..',
	'name' => 'OakClub',
    'defaultController' => 'default',
    'sourceLanguage' => CONST_LANGUAGE_EN,
    'language' => CONST_LANGUAGE_EN,

	'import' => array
    (
        'application.base.*',
        'application.components.*',
		'application.models.*',
		'application.keys.*',
		'application.utilities.*',
		'application.workers.*',
		'ext.yii-redis.*'
	),

	'components' => array
    (
		'db' => array
        (
			'connectionString' => 'mysql:host=127.0.0.1;dbname=oakclub_new',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '123456',
			'charset' => 'utf8',
            'tablePrefix' => 'oak_',
            'attributes' => array
            (
                PDO::MYSQL_ATTR_LOCAL_INFILE => true
            )
		),
        'facebook' => array
        (
            'class' => 'ext.yii-facebook-opengraph.SFacebook',
            'appId' => '411743242240124',
            'secret' => 'e1e899bcf5e557871065633fd407620a',
            'jsCallback' => true
        ),
        'redis' => array
        (
            'class' => 'ext.yii-redis.ARedisConnection',
            'hostname' => '127.0.0.1',
            'port' => 6379,
            'database' => 1,
            'prefix' => 'oak_'
        ),
        'gearman' => array
        (
            'class' => 'ext.yii-gearman.Gearman',
            'servers' => array
            (
                array
                (
                    'host' => '127.0.0.1',
                    'port' => 4730
                )
            )
        ),
        'thumbnail' => array
        (
            'class' => 'ext.yii-ephpthumb.EPhpThumb'
        ),
        'mail' => array
        (
            'class' => 'ext.yii-mail.YiiMail',
            'transportType'=>'smtp',
            'transportOptions' => array
            (
                'host' => 'smtp.sendgrid.net',
                'port' => '465',
                'username' => 'dung@likevn.com',
                'password' => 'oakclubemail',
                'encryption' => 'ssl'
            ),
            'viewPath' => 'application.views.mail',
            'logging' => false,
            'dryRun' => false
        ),
        'scribe' => array
        (
            'class' => 'ext.yii-scribe.Scribe',
            'host' => '127.0.0.1',
            'port' => 1463,
            'category' => 'oakclub'
        ),
        'urlManager' => array
        (
			'urlFormat' => 'path',
            'showScriptName' => false
		),
        'session' => array
        (
            'autoStart' => true,
            'cookieMode' => 'only',
            'sessionName' => 'PHP_SESSION_ID',
            'timeout' => 1800
        )
	),
    
    'params' => array
    (
        ENUM_CONFIG_PARAM_PHOTO_PATH => '/home/huynh/Data/oakclub_new/photos',
        ENUM_CONFIG_PARAM_PHOTO_URL => 'http://dummyimage.com',
        ENUM_CONFIG_PARAM_PHOTO_ORIGIN_FOLDER => '600'
    )
);